package cn.stylefeng.guns.modular.business.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 常见问题
 * </p>
 *
 * @author pzp
 * @since 2019-07-29
 */
@Data
@TableName("c_asked_question")
public class AskedQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "question_id", type = IdType.AUTO)
    private Integer questionId;

    /**
     * 问题标题
     */
    @TableField("title")
    private String title;

    /**
     * 问题内容
     */
    @TableField("content")
    private String content;

    /**
     * 是否删除
     */
    @TableField("delete_flag")
    private Integer deleteFlag;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;



    @Override
    public String toString() {
        return "AskedQuestion{" +
        "questionId=" + questionId +
        ", title=" + title +
        ", content=" + content +
        ", deleteFlag=" + deleteFlag +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
